namespace MetroIoc
{
    internal static class ExtensionMethods
    {
        internal static string ValueOrDefault(this string key, string defaultKey)
        {
            if (key != null) key = key.Trim();
            return string.IsNullOrEmpty(key) ? defaultKey : key;
        }

        internal static IContainer CreateChild(this MetroContainer container)
        {
            return new MetroContainer(container);
        }
    }
}